let BASE_URL = "http://123.207.32.32:7888/api/hy66"

export const httpRequest = (options)=> {
	return new Promise((reslove, reject)=> {
		uni.request({
			url: BASE_URL + options.url,
			data: options.data || {},
			method: options.method || "GET",
			header: options.header || {},
			timeout: 6000,
			success: (res) => {
				reslove(res)
			},
			fail: (err) => {
				reject(err)
			}
		})
	})
}

export default httpRequest